local extension = Package:new("tuntian_cards", Package.CardPack)
extension.extensionName = "tuntian_studio"

extension:loadSkillSkelsByPath("./packages/tuntian_studio/pkg/cards/skills")

Fk:loadTranslationTable{
  ["tuntian_cards"] = "屯田工作室",
}

local card_skels = {}

if not Fk.skills["fire__honey_trap_skill"] then
  local fire__honey_trap_skill = require "packages/tuntian_studio/pkg/cards/special_skills/fire__honey_trap"
  extension:loadSkillSkels {fire__honey_trap_skill}

  local fire__honey_trap = fk.CreateCard{
    name = "&fire__honey_trap",
    type = Card.TypeTrick,
    skill = "fire__honey_trap_skill",
    is_damage_card = true,
  }
  table.insert(card_skels, fire__honey_trap)
  Fk:loadTranslationTable{
    ["fire__honey_trap"] = "火·美人计",
    [":fire__honey_trap"] = "锦囊牌<br/>".."<b>时机</b>：出牌阶段<br/>"
    .."<b>目标</b>：一名有手牌的其他男性角色<br/>"
    .."<b>效果</b>：所有女性角色获得目标角色的一张手牌并交给你一张手牌，"
    .."然后你与目标中手牌数少的角色对手牌数多的角色造成1点火焰伤害。",
  }
end

local frostmourne = fk.CreateCard{
  name = "&frostmourne",
  type = Card.TypeEquip,
  sub_type = Card.SubtypeWeapon,
  attack_range = 3,
  equip_skill = "#frostmourne_skill",
}
extension:addCardSpec("frostmourne", Card.Spade, 5)
table.insert(card_skels, frostmourne)
Fk:loadTranslationTable{
  ["frostmourne"] = "霜之哀伤",
  [":frostmourne"] = "装备牌·武器<br />"
  .."<b>攻击范围</b>：3<br />"
  .."<b>武器技能</b>：你使用【杀】或【凋零缠绕】造成的伤害均视为冰冻伤害，且你可以用以此法或【湮灭】弃置的牌蓄谋。",
}

local army_of_the_dead = fk.CreateCard{
  name = "&army_of_the_dead",
  type = Card.TypeTrick,
  skill = "army_of_the_dead_skill",
}
extension:addCardSpec("army_of_the_dead", Card.Spade, 6)
table.insert(card_skels, army_of_the_dead)
Fk:loadTranslationTable{
  ["army_of_the_dead"] = "死亡大军",
  [":army_of_the_dead"] = "锦囊牌<br /><b>时机</b>：出牌阶段<br />"
  .."<b>目标</b>：一名其他角色<br />"
  .."<b>效果</b>：亮出最后进入弃牌堆的五张牌，对目标角色依次使用其中的【杀】。"
}

local doom_pact = fk.CreateCard{
  name = "&doom_pact",
  type = Card.TypeTrick,
  skill = "doom_pact_skill",
}
extension:addCardSpec("doom_pact", Card.Spade, 5)
table.insert(card_skels, doom_pact)
Fk:loadTranslationTable{
  ["doom_pact"] = "末日契约",
  [":doom_pact"] = "锦囊牌<br />".."<b>时机</b>：出牌阶段<br />"
  .."<b>目标</b>：所有角色<br />".."<b>效果</b>：目标角色弃置所有牌。<br />"
  .."<b>结算后</b>：移除所有死亡骑士牌。",
}

local death_grip = fk.CreateCard{
  name = "&death_grip",
  type = Card.TypeTrick,
  skill = "death_grip_skill",
}
extension:addCardSpec("death_grip", Card.Spade, 2)
table.insert(card_skels, death_grip)
Fk:loadTranslationTable{
  ["death_grip"] = "死亡之握",
  [":death_grip"] = "锦囊牌<br /><b>时机</b>：出牌阶段<br />"
  .."<b>目标</b>：一名其他角色<br />"
  .."<b>效果</b>：观看目标角色的手牌并可以使用其中一张牌。",
}

local death_coil = fk.CreateCard{
  name = "&death_coil",
  type = Card.TypeTrick,
  skill = "death_coil_skill",
  is_damage_card = true,
}
extension:addCardSpec("death_coil", Card.Spade, 2)
table.insert(card_skels, death_coil)
Fk:loadTranslationTable{
  ["death_coil"] = "凋零缠绕",
  [":death_coil"] = "锦囊牌<br />".."<b>时机</b>：出牌阶段<br />"
  .."<b>目标</b>：一名与你距离1以内角色<br />"
  .."<b>效果</b>：对目标角色造成1点伤害。若目标角色为自己，则改为回复1点体力。",
}

local obliterate = fk.CreateCard{
  name = "&obliterate",
  type = Card.TypeTrick,
  skill = "obliterate_skill",
}
extension:addCardSpec("obliterate", Card.Spade, 2)
table.insert(card_skels, obliterate)
Fk:loadTranslationTable{
  ["obliterate"] = "湮灭",
  [":obliterate"] = "锦囊牌<br /><b>时机".."</b>：出牌阶段<br />"
  .."<b>目标</b>：一名其他角色<br />"
  .."<b>效果</b>：弃置目标角色的一或三张牌。若为三张，你失去1点体力。",
}

local anti_magic_shell = fk.CreateCard{
  name = "&anti_magic_shell",
  type = Card.TypeTrick,
  skill = "anti_magic_shell_skill",
  multiple_targets = true,
}
extension:addCardSpec("anti_magic_shell", Card.Spade, 4)
table.insert(card_skels, anti_magic_shell)
Fk:loadTranslationTable{
  ["anti_magic_shell"] = "反魔法护罩",
  [":anti_magic_shell"] = "锦囊牌<br /><b>时机</b>：出牌阶段<br />"
  .."<b>目标</b>：至多三名座次连续的角色<br />"
  .."<b>效果</b>：令目标角色隐匿。",
}

local death_and_decay = fk.CreateCard{
  name = "&death_and_decay",
  type = Card.TypeTrick,
  skill = "death_and_decay_skill",
  multiple_targets = true,
}
extension:addCardSpec("death_and_decay", Card.Spade, 3)
table.insert(card_skels, death_and_decay)
Fk:loadTranslationTable{
  ["death_and_decay"] = "死亡凋零",
  [":death_and_decay"] = "锦囊牌<br />"
  .."<b>时机</b>：出牌阶段<br />"
  .."<b>目标</b>：所有角色<br />"
  .."<b>效果</b>：目标角色失去1点体力。",
}

extension:loadCardSkels(card_skels)
return extension
